﻿using System.Web.Mvc;
using System.Web.Routing;

namespace LogikBug.ModularMvc.Routing
{
	public class ModuleRoute : Route
	{
		#region Constructors

		public ModuleRoute(string url)
			: base(url, new MvcRouteHandler())
		{
		}

		public ModuleRoute(string url, RouteValueDictionary defaults)
			: base(url, defaults, new MvcRouteHandler())
		{
		}

		public ModuleRoute(string url, RouteValueDictionary defaults, RouteValueDictionary constraints)
			: base(url, defaults, constraints, new MvcRouteHandler())
		{
		}

		public ModuleRoute(string url, RouteValueDictionary defaults, RouteValueDictionary constraints, RouteValueDictionary dataTokens)
			: base(url, defaults, constraints, dataTokens, new MvcRouteHandler())
		{
		}

		#endregion

		#region Properties

		public IModule Module { get; set; }

		#endregion
	}
}
